﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using INSTA.StockApplication.BLL;

namespace INSTA.StockApplication.UI.Windows
{
    public partial class Authentification : DevExpress.XtraEditors.XtraForm
    {
        private Employee _employee = new Employee();

        public Authentification()
        {
            InitializeComponent();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if (_employee.Authentification(textEdit1.Text, textEdit2.Text))
            {
                //AFFICHER FENETRE ACCUEIL
                var home = new RibbonForm1();
                home.Show();
            }
            else
            {
                XtraMessageBox.Show("Identifiants inconnus");
            }
        }
    }
}